package com.kefu.boss.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@TableName(value="boss_user_role")
@ApiModel(description = "用户角色")
public class BossUserRole implements Serializable {
    /**
     * 主键
     */
    @TableId(value="id",type= IdType.ASSIGN_ID)
    @ApiModelProperty(name = "id", value = "主键", hidden = true)
    private Long id;
    /**
     * 用户
     */
    @TableField(value = "user_id")
    @ApiModelProperty(name = "userId", value = "用户")
    private String userId;
    /**
     * 角色
     */
    @TableField(value = "role_id")
    @ApiModelProperty(name = "roleId", value = "角色")
    private String roleId;
    private static final long serialVersionUID = 1L;
}